package com.CMS.server.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

@Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = EntityTokens.GALERY_TABLE)
public class Galery extends BaseEntity{

	
	private static final long serialVersionUID = -7113179815029096002L;
	
	@Column(name = EntityTokens.GALERY_NAME, length = EntityTokens.GALERY_NAME_LENGTH,
			nullable = EntityTokens.GALERY_NAME_NULLABLE)
	protected String name;
	
	@Column(name = EntityTokens.PAGE_GALERY, length = EntityTokens.GALERY_NAME_LENGTH,
			nullable = EntityTokens.GALERY_NAME_NULLABLE)
	protected long page;
	
	
	public Galery(){
		super();
	}
	
	public void setNameGalery(String nameGalery) {
		this.name = nameGalery;
	}
	
	public String getName() {
		return this.name;
	}
	
	public void setPageAsociated(long idPage) {
		this.page = idPage;
	}
	
	public String getGaleryName() {
		return this.name;
	}
	
	public long getPage() {
		return this.page;
	}
	 
}
